package io.xuan.modules.app.controller;


import io.xuan.common.utils.R;
import io.xuan.modules.app.service.OrderService;
import io.swagger.annotations.Api;
import io.swagger.annotations.ApiOperation;
import org.springframework.beans.factory.annotation.Autowired;
import org.springframework.web.bind.annotation.GetMapping;
import org.springframework.web.bind.annotation.RequestMapping;
import org.springframework.web.bind.annotation.RestController;

@Api(tags = "用户端——测试的用来")
@RestController
@RequestMapping("app/test")
public class AppTestController {

    @Autowired
    private OrderService orderService;

    @ApiOperation(" 测试接口")
    @GetMapping("/test")
    public R miniConfig(){
        orderService.simulateOrderEvents();
        return R.ok("成功请求");
    }
}
